<template>
  <div class="recommend">
    <div v-for="item in recommend" :key="item.acm">
      <a :href="item.link">
        <img :src="item.image">
        <p>{{item.title}}</p>
      </a>
    </div>
  </div>
</template>


<script>
export default {
  name: 'HomeRecommend',
  props: {
    recommend:{
      type: Array,
      default() {
        return []
      }
    }
  },
  data() {
    return {
    }
  }
}
</script>


<style lang='scss' scoped>
  .recommend{
    width:100%;
    display:flex;
    flex-wrap:nowrap;
    justify-content: space-between;
    text-align: center;
    padding:10px 0;
    border-bottom:8px solid #eee;
    div{
      padding:10px;
      box-sizing:border-box;
      flex:1;
      a,img,p{
        width:100%;
      }
      img{
        margin-bottom:5px;
      }
    }
  }
</style>
